import json

class UserInfo:
    def __init__(self, name, age, email):
        self.name = name
        self.age = age
        self.email = email

    def __str__(self):
        return f"Name: {self.name}, Age: {self.age}, Email: {self.email}"


def load_users_from_file(file_path):
    with open(file_path, 'r') as file:
        data = json.load(file)
    users = [UserInfo(user['name'], user['age'], user['email']) for user in data]
    return users


if __name__ == "__main__":
    users_list = load_users_from_file('json.txt')

    for user in users_list:
        print(user)
